package com.linq.cool.system.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.linq.cool.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @Author: yqlin
 * @Date: 2021/1/30 19:17
 * @Description: 轮播图
 * @Version: 1.0.0
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "sys_banner")
public class SysBanner extends BaseEntity {
    /**
     * 轮播图id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 轮播图名称
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 图片
     */
    @TableField(value = "pic")
    private String pic;

    /**
     * 状态(0 禁用 1:启用)
     */
    @TableField(value = "`status`")
    private Integer status;

    /**
     * 点击数
     */
    @TableField(value = "click_count")
    private Integer clickCount;

    /**
     * 下单数
     */
    @TableField(value = "order_count")
    private Integer orderCount;

    /**
     * 链接地址
     */
    @TableField(value = "url")
    private String url;

    /**
     * 排序
     */
    @TableField(value = "sort")
    private Integer sort;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 是否删除(0  未删除 1:已删除 )
     */
    @TableLogic
    @TableField(value = "is_deleted")
    private Integer isDeleted;

}